package com.example.hallserver.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * Created on 2020/2/17.
 *
 * @author Grak
 * @since 1.0
 */
@Configuration
@RefreshScope
public class ChessConfig {

    @Value("${msg.name}")
    private String name;

    @Value("${msg.age}")
    private String age;

    @Value("${msg.descript}")
    private String descript;

    public String getName() {
        return name;
    }

    public String getAge() {
        return age;
    }

    public String getDescript() {
        return descript;
    }

    @Override
    public String toString() {
        return "UserConfig{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", descript='" + descript + '\'' +
                '}';
    }
}
